package cn.fjsay.java.demo4;

class Simulator {
    public void playSound(Animal animal) {
        animal.cry();
        System.out.println("Animal type: " + animal.getAnimalName());
    }
}